package com.univhis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.univhis.entity.OrderGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2024/1/4 11:04
 */
@Mapper
public interface OrderGoodsMapper extends BaseMapper<OrderGoods> {

    @Select("select * from order_goods where order_id = #{orderId}")
    List<OrderGoods> findGoodsByOrderId(@Param("orderId") Long orderId);
}
